﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TN_CMS.Domain.Abstract
{
    public interface ICommonRepository
    {
        int GetMax(string table, string column);

        List<int> GetMappingList(string table, string column, string columnId, int id);

        int InsertMapping(string table, string column1, string column2, int id1, int id2);

        int UpdateActive(string table, string column, string columnId, string ids, bool isActive);

        int UpdateToggle(string table, string column, string columnId, int id);

        int UpdateIncrease(string table, string column, string columnId, int id, bool isIncrease);

        int Delete(string table, string columnId, string ids);

        int DeleteMapping(string table, string column1, string column2, int id1, int id2);
    }
}
